<?php
/**
 * The default template for displaying content
 *
 * Used for both single and index/archive/search.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */


$imageMeta  = get_post_meta($post->ID,'File Upload', true );
$imgLink    = wp_get_attachment_image($imageMeta, array('320',500));
if(empty($imgLink))
    $imgLink = '<img src="'.get_template_directory_uri().'/images/na.jpg'.'" width=300 >';


$location   = get_post_meta($post->ID,'Location', true );
$participant   = get_post_meta($post->ID,'Artserv Participants', true );
$date       = the_date('','','',false);
$time       = get_the_time();



?>
<?php //the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>

<div class="art-table">
        <div class="item_title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php echo $imgLink; ?></a></div>
        <div class="item_title">
            <div class="art-item-row">
                <span class="art-item-title">TITLE:</span>
                <span><a href="<?php the_permalink(); ?>" rel="bookmark"><?php echo the_title()  ?></a></span>
            </div>
            <div class="art-item-row">
                <span class="art-item-title">LOCATION:</span>
                <span><?php echo $location  ?></span>
            </div>
            <div class="art-item-row">
                <span class="art-item-title">DATE:</span>
                <span><?php echo $date  ?></span>
            </div>
            <div class="art-item-row">
                <span class="art-item-title">TIME:</span>
                <span><?php echo $time  ?></span>
            </div>
            <div class="art-item-row">
                <div class="art-item-title">ARTSERV PARICIPANTS:</div>
                <div><?php echo $participant  ?></div>
            </div>
            <div class="art-item-row">
                <div class="art-item-title">DESCRIPTION/DETAIL:</div>
                <div><?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) );  ?></div>
            </div>

        </div>
    <div class="clear"></div>
</div>
